package main

import (
	"flag"
	"gitee.com/yysf-xin/dproxy/pkg/navcat"
	"net"
	"net/http"
)

func main()  {
	addr := flag.String("addr", "127.0.0.1:8083","listen addr")
	l,err := net.Listen("tcp",*addr)
	if err != nil {
		panic(err)
	}
	var n navcat.Navicat
	err = http.Serve(l,&n)
	if err != nil {
		panic(err)
	}


}

